package org.jeecg.modules.xl.product.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.xl.order.mapper.XlCustomerOrdeMapper;
import org.jeecg.modules.xl.order.vo.ProductSheet;
import org.jeecg.modules.xl.product.entity.XlProductInfo;

/**
 * @Description: xl_product_info
 * @Author: jeecg-boot
 * @Date:   2024-10-18
 * @Version: V1.0
 */
public interface XlProductInfoMapper extends BaseMapper<XlProductInfo> {
    public List<ProductSheet> getProductListForExport();
    public List<ProductSheet> getCustomerProductList(String customerId);

    public List<ProductSheet> getProductWithPriceListByStoreLevel(@Param("priceLevel") String priceLevel);

    /**
     * @see XlCustomerOrdeMapper#selectOrdersAfterAmount(String)
     * @param upccodes
     * @return
     */
    @MapKey("upc_code")
    Map<String,Map<String, String>> getCoverCustomer(@Param("upccodes") String upccodes);
}
